package com.epwk.action;

import com.epwk.driver.SeleniumDriver;
import org.openqa.selenium.JavascriptExecutor;

import static com.epwk.driver.SeleniumDriver.driver;

/**
 * Created by Administrator on 2016/11/23.
 */
public class JSExecutor extends SeleniumDriver{

    public static void jsExecutor(String js) throws InterruptedException {
        JavascriptExecutor slide = (JavascriptExecutor) driver;
        slide.executeScript(js);
        Thread.sleep(3000);
    }
}
